import { Component } from 'react'


class App extends Component {
  state = {
    msg: '嘿嘿'
  }

  handleChange = (e) => {
    this.setState({
      msg: e.target.value
    })
    console.log(e.target.value);
  }

  render() {
    return (
      <div>
        <input type="text" value={this.state.msg} onChange={this.handleChange}/>
      </div>
    )
  }
}


export default App